<?php

/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2016/3/25
 * Time: 19:21
 */
class Model_PrizeRecordAdr extends PhalApi_Model_NotORM{
  protected function getTableName($id){
    return 't_prizerecordadr';    //用户购买商户的记录
  }
  /**
   * 收货地址
   */
  public function InsertAdr($userid,$prizeid,$recivephone,$recivename,$reciveAdr){
    $this->getORM()->insert(array('userid'=>$userid,'prizeid'=>$prizeid,'recivephone'=>$recivephone
    ,'recivename'=>$recivename,'reciveAdr'=>$reciveAdr,'createtime'=>time()));
  }

}